import {requestMarketAPI} from "@/utils/request";

//优惠券相关操作API
export function AddCoupon(data){
    return requestMarketAPI.post("/management/coupon/add",data)
}
export function UpdateCoupon(data){
    return requestMarketAPI.post("/management/coupon/update",data)
}
export function DeleteCoupon(data){
    return requestMarketAPI.post("/management/coupon/delete",data)
}
export function GenerateCodeCoupon(data){
    return requestMarketAPI.post("/management/exchange/code/generate",data)
}
export function StartCoupon(data){
    return requestMarketAPI.post("/management/coupon/start",data)
}
export function ListCoupon(data){
    return requestMarketAPI.post("/management/coupon/list",data)
}
export function ListCouponStatistics(data){
    return requestMarketAPI.get("/management/coupon/statistics/"+data)
}
export function ListExchangeCode(data){
    return requestMarketAPI.post("/management/exchange/code/list",data)
}